var jQ = jQuery.noConflict();
jQ(function(){
	jQ("#headtable_btnzone div").removeClass("other_per").addClass("other_per");
	//jQ("#my_clips").removeClass("other_per").css({"backgroundPosition":"-75px -33px"});
	var headHtml="";
	headHtml+="<div class='my_clips_menu'>";
	headHtml+="<a class=\"calendar\"  href='"+jQ("#ctxVal").val()+"/myclip/calendar.html'></a>";
	headHtml+="<a class=\"clipindex\"  href='"+jQ("#ctxVal").val()+"/myclip/clip_plaza.html'></a>";
	headHtml+="<a class=\"clipmanage\"  href='"+jQ("#ctxVal").val()+"/myclip/clip_list.html'></a>";
	headHtml+="<a class=\"addclip\" href='"+jQ("#ctxVal").val()+"/myclip/add_clip.html' id='tjsj'></a>";
	headHtml+="<a class=\"sysmsg\" href='"+jQ("#ctxVal").val()+"/myclip/message.html' id='xtxx'></a>";
	headHtml+="</div>";
	
	jQ("#divpersonal_fun").empty().append(headHtml);
});

function formatCreatetime(createtime) {
	if(createtime==0)
		return "";
	var var1=new Date();
	var1.setTime(createtime);
	var now=new Date();
	if(now.getYear()==var1.getYear()&&now.getMonth()==var1.getMonth()&&now.getDate()==var1.getDate()){
		return var1.pattern("今天	HH:mm");
	}else{
		if(now.getYear()==var1.getYear()){
			return var1.pattern("MM月dd日");
		}else{
			return var1.pattern("yyyy-MM-dd");
		}
	}
}

function formatCreatetimeTitle(createtime) {
	if(createtime==0)
		return "";
	var var1=new Date();
	var1.setTime(createtime);
	return var1.pattern("yyyy年MM月dd日 HH:mm");
}